<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>测试请求后台数据成功否</title>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
</head>
<body>
<h1 id="sss"></h1>
<div id="page1">
        <iframe align="center" width="100%" height="100%" src="https://www.wegoab.com/static/day-report1.html"  id="addFrame"></iframe>
</div>
</body>
<script type="text/javascript">
//console.log(page1.import.body.innerHTML);
window.onload=function (){
	var childWindow = document.getElementById("addFrame").contentWindow;
	console.log(childWindow.GoAccess);
 /*var data = {
				"hits":6,
				"avgTs":"73.33ms",
				"cumTs":"5.76h",
				"maxTs":"49.02s",
				"requestUrl":"/service/get_qiuniu_token.jsp"
			};
     $.ajax({
    	 	contentType:'application/json;charset=UTF-8',
            url:'http://localhost:8087/operat/insNginxLog',
            type:'post',//GET 或POST
            async:false,//false是否异步
			crossDomain:true,
            data:JSON.stringify(data),    
            dataType:'json',//返回的数据格式类型json/xml/html/script/jsonp/text    （返回的值很关键，如果不是text类型，页面可能会被重写）
            success:function(data){
                console.log(data);
                $("#sss").html(data);
            },
            error:function(data){
                console.log(data);//在前端控制台打印请求的状态
            }
        }); */
}
</script>
</html>